<?php ob_start();?>
<?php
$root = $_SERVER['DOCUMENT_ROOT'];
include($root.'/standart/head.php');
include($root.'/standart/dateHeader.php');
include($root.'/standart/dbconnect.php');
$db = connect();
if(isset($_GET['orderId'])){
	$orderId = $_GET['orderId'];
	$stmt ="UPDATE ORDERS
		SET ISPRINT = 1
		WHERE ID = $orderId";
	$db->query($stmt) or die($stmt."<br/><br/>".mysql_error());
	echo "successfully completed";
}
	disconnect($db);
?>
<?php ob_end_flush(); ?>